

import cv2

#print("Before URL")
# cap = cv2.VideoCapture('RTSP://admin:Aa123456@192.168.1.2:554/onvif1')
# cap = cv2.VideoCapture("/home/tt/Videos/VID_20201202_133703_090.mp4")
# cap = cv2.VideoCapture('rtsp://184.72.239.149/vod/mp4:BigBuckBunny_175k.mov')

#print("After URL")

while cap.isOpened():

    #print('About to start the Read command')
    ret, frame = cap.read()
    #print('About to show frame of Video.')
    cv2.imshow("Capturing",frame)
    #print('Running..')

    if cv2.waitKey(1) & 0xFF == ord('q'):
        break

cap.release()
cv2.destroyAllWindows()